﻿<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="../../lib/extjs/resources/css/ext-all.css" />
<script type="text/javascript" src="../../lib/extjs/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="../../lib/extjs/ext-all-debug.js"></script>
<script type="text/javascript" src="Util.js"></script>
<script type="text/javascript" src="Core.js"></script>
<script type="text/javascript" src="Template.js"></script>
<title></title>
<script type="text/javascript">
function getData()
{
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  
  xmlhttp.onreadystatechange=function()
  {
    if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
        var data = xmlhttp.responseText;
        document.getElementById("txtHint").innerHTML = data;
    }
  }
  xmlhttp.open("GET","db/UseDatabaseManager.asp");
  xmlhttp.send();
}
function getData2()
{
    alert(this);
    var a =function innerFun() {alert(this);}();
}
</script>
</head>
<body>
    <div>see data</div>
    <script type="text/javascript">
      var o1 = {testvar:22, fun:function() { alert('o1: ' + this.testvar); }};
      var o2 = {testvar:33, fun:function() { alert('o2: ' + this.testvar); }};
      var store = new Ext.data.ArrayStore();      
      alert(store.batchKey);
      Ext.override(Ext.data.ArrayStore, { batchKey: 'a' });
      MyStore = Ext.extend(Ext.data.ArrayStore, { });
      var store3 = new MyStore();
      alert(store3.batchKey);
      </script>
    <div><input type="button" name="test" value="test" onclick="getData()"></input></div>
    <div><input type="button" name="test" value="test" onclick="getData2()"></input></div>
    <div id="txtHint"></div>
</body>
</html>
